package com.ruoyi.warehouses_zlw.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.warehouses_zlw.mapper.ZlwWarehousesMapper;
import com.ruoyi.warehouses_zlw.domain.ZlwWarehouses;
import com.ruoyi.warehouses_zlw.service.IZlwWarehousesService;
import com.ruoyi.common.core.text.Convert;

/**
 * 仓库信息管理Service业务层处理
 * 
 * @author zlw
 * @date 2025-06-11
 */
@Service
public class ZlwWarehousesServiceImpl implements IZlwWarehousesService 
{
    @Autowired
    private ZlwWarehousesMapper zlwWarehousesMapper;

    /**
     * 查询仓库信息管理
     * 
     * @param warehouseId 仓库信息管理主键
     * @return 仓库信息管理
     */
    @Override
    public ZlwWarehouses selectZlwWarehousesByWarehouseId(String warehouseId)
    {
        return zlwWarehousesMapper.selectZlwWarehousesByWarehouseId(warehouseId);
    }

    /**
     * 查询仓库信息管理列表
     * 
     * @param zlwWarehouses 仓库信息管理
     * @return 仓库信息管理
     */
    @Override
    public List<ZlwWarehouses> selectZlwWarehousesList(ZlwWarehouses zlwWarehouses)
    {
        return zlwWarehousesMapper.selectZlwWarehousesList(zlwWarehouses);
    }

    /**
     * 新增仓库信息管理
     * 
     * @param zlwWarehouses 仓库信息管理
     * @return 结果
     */
    @Override
    public int insertZlwWarehouses(ZlwWarehouses zlwWarehouses)
    {
        return zlwWarehousesMapper.insertZlwWarehouses(zlwWarehouses);
    }

    /**
     * 修改仓库信息管理
     * 
     * @param zlwWarehouses 仓库信息管理
     * @return 结果
     */
    @Override
    public int updateZlwWarehouses(ZlwWarehouses zlwWarehouses)
    {
        return zlwWarehousesMapper.updateZlwWarehouses(zlwWarehouses);
    }

    /**
     * 批量删除仓库信息管理
     * 
     * @param warehouseIds 需要删除的仓库信息管理主键
     * @return 结果
     */
    @Override
    public int deleteZlwWarehousesByWarehouseIds(String warehouseIds)
    {
        return zlwWarehousesMapper.deleteZlwWarehousesByWarehouseIds(Convert.toStrArray(warehouseIds));
    }

    /**
     * 删除仓库信息管理信息
     * 
     * @param warehouseId 仓库信息管理主键
     * @return 结果
     */
    @Override
    public int deleteZlwWarehousesByWarehouseId(String warehouseId)
    {
        return zlwWarehousesMapper.deleteZlwWarehousesByWarehouseId(warehouseId);
    }
}
